/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cxhd.pacs.controller.user;

import com.cxhd.pacs.model.HostInfo;
import com.jfinal.core.Controller;

/**
 *
 * @author 52461
 */
public class PatientCtrl extends Controller{
    
    public void index(){
        render("/patient/regPatient.jsp");
    }
    public void saveInfo(){
     new HostInfo().saveInfo(this);
        renderText("true");
    }
    public void getOnePatientInfo(){
        renderJson(new HostInfo().getPatientInfo(getPara("host_id")));
    }
}
